package cn.edu.csust.cvs.management.service;

import cn.edu.csust.cvs.management.common.ApiPageResult;
import cn.edu.csust.cvs.management.common.ApiResponse;
import cn.edu.csust.cvs.management.controller.request.RecordDeleteRequest;
import cn.edu.csust.cvs.management.controller.request.RecordPageQueryRequest;
import cn.edu.csust.cvs.management.repository.entity.RecordEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface RecordService  {

    /**
     * 上传文件
     * @param multipartFile
     * @return
     */
    ApiResponse upload(MultipartFile multipartFile);

    /**
     * 分页查询录音记录
     * @param request
     * @return
     */
    ApiPageResult<List<RecordEntity>> pageQuery(RecordPageQueryRequest request);

    /**
     * 录音文件删除
     * @param request
     * @return
     */
    ApiResponse delete(RecordDeleteRequest request);

    /**
     * 文件重命名
     * @param id
     * @param name
     * @return
     */
    ApiResponse rename(Integer id,String name);
}
